﻿import QtQuick 2.0
import QtQuick.Controls 2.12

MenuItem {
    id: menuItem
    implicitWidth: 200
    implicitHeight: 20

    contentItem: Text {
        text: menuItem.text
        font: menuItem.font
        opacity: enabled ? 1.0 : 0.3
        color: menuItem.highlighted ? "#ffffff" : "#21be2b"
        horizontalAlignment: Text.AlignLeft
        verticalAlignment: Text.AlignVCenter
        elide: Text.ElideRight
    }

    background: Rectangle {
        // border.color: 'black'
        anchors.left: parent.left
        anchors.right: parent.right
        anchors.leftMargin: 1
        anchors.rightMargin: 1
        implicitWidth: 200
        implicitHeight: 20
        opacity: enabled ? 1 : 0.3
        color: menuItem.highlighted ? "#21be2b" : "transparent"
        clip: true
    }

}


